﻿using Quartz;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace QuartzNetTest
{
    public class DumbJob : IJob
    {
        public async Task Execute( IJobExecutionContext context )
        {
            JobKey key = context.JobDetail.Key;

            JobDataMap dataMap = context.JobDetail.JobDataMap;

            string jobSay = dataMap.GetString("jobsays");
            var myfloat = dataMap.GetFloat("myFloat");

            await Console.Error.WriteLineAsync("Instance"+key+"of DumbJob says: "+jobSay+", and val is: "+myfloat);
        }
    }
}
